#include "pass_op_test.h"
#include "dag.h"
#include "dag_operators.h"

#include <fstream>

using namespace dag;
using namespace std;

const char* PassOpTest::description() {
	return "pass_op_test";
}

bool PassOpTest::run() {
	PassOp pop;
	ofstream ofs("pass_op_test.bin", ios::binary | ios::trunc);
	pop.serialize(ofs);
	ofs.close();
	
	ifstream ifs("pass_op_test.bin", ios::binary);
	auto_ptr<FrameOperator> pop2 = FrameOperator::inflate(ifs);
	ifs.close();
	
	return true;
}